﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ModbusDataParseTool.Entity
{
    public class CommInfoEntity
    {
        public CommTypeInfo CommType { get; set; }

        public string ComProtName { get; set; }
        public int ComBaudRate { get; set; }


        public string TCPServerIP { get; set; }
        public int TCPServerProt { get; set; }

        public string TCPClientIP { get; set; }
        public int TCPClientProt { get; set; }
        public string TCPClientLocalIP { get; set; }
        public int TCPClientLocalProt { get; set; }


    }

    public enum CommTypeInfo
    {
        [Description("串口")]
        SerialProt = 0,
        [Description("TCP客户端")]
        TCPClient = 1,
        [Description("TCP服务器")]
        TCPServer = 2,
    }

}
